<?php

namespace app\api\controller;

use app\admin\model\bot\Bot;
use app\common\controller\Api;
use fast\Date;
use think\Db;
use GatewayClient\Gateway;
use think\Exception;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
        try {
            throw new Exception('sdsfdfs');

        }catch (\Exception $e){
            echo $e->getMessage();
        }

        die;
        $this->success('请求成功');
    }
}
